goog.require('ftw.Core');

goog.require('goog.module.ModuleLoader');
goog.require('goog.module.ModuleManager');

var manager = goog.module.ModuleManager.getInstance();
var loader = new goog.module.ModuleLoader();
manager.setLoader(loader);

// Configuration from plovr
manager.setAllModuleInfo(goog.global['PLOVR_MODULE_INFO']);
manager.setModuleUris(goog.global['PLOVR_MODULE_URIS']);
loader.setDebugMode(!!goog.global['PLOVR_MODULE_USE_DEBUG_MODE']);

// Loader for ftw.ui module.
goog.exportSymbol('ftw.ui.load', function() {
  manager.load('ui');
});

manager.setLoaded('core');
